@sanity
@securityLaborOrderValidation
Feature: Security schedule and timesheet Management
File name: securityScheduleAndTimehseet.feature
Relative path: features/securityScheduleAndTimehseet.feature
@sanity
Scenario: Create security schedule, Create timesheet, verify functionalities and validations
Given
Security management user logged into the application
When
User navigates to security schedule page
Error: Unable to create order — all attempted dates already have an entry.
at SecuritySchedulePage.(anonymous) (C:\SOTA\src\pages\securitySchedule.page.ts:249:36)
at step (C:\SOTA\src\pages\securitySchedule.page.ts:33:23)
at Object.next (C:\SOTA\src\pages\securitySchedule.page.ts:14:53)
at fulfilled (C:\SOTA\src\pages\securitySchedule.page.ts:5:58)
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
User should see success message for security schedule
Then
click on view different schedule button
Then
Select 2nd shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
click on view different schedule button
Then
Select 3RD shift and click on go button
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
copy the rolling code from the schedule
Then
user click on logout button
Then
Security sergeant user logged into the application
Then
Open the timesheet menu
Then
Verify the validations for ST and OT hr.
Then
Enter correct ST and OT hr.
Then
verify daily security schedule under sergeant user
Then
Verify labor Order page is opening under security management user
Then
user click on logout button
Then
Security manager user logged into the application
Then
Open the timesheet menu on security management user
Then
verify save without submit functionality
Then
Verify remove approval functionality
Then
verify submit functionality
Then
verify approve functionality
Then
Verify reject functionality
Then
verify approve functionality
Given
Security management user logged into the application
When
User navigates to security schedule page
Error: Unable to create order — all attempted dates already have an entry.
at SecuritySchedulePage.(anonymous) (C:\SOTA\src\pages\securitySchedule.page.ts:249:36)
at step (C:\SOTA\src\pages\securitySchedule.page.ts:33:23)
at Object.next (C:\SOTA\src\pages\securitySchedule.page.ts:14:53)
at fulfilled (C:\SOTA\src\pages\securitySchedule.page.ts:5:58)
When
Select staffing for operations and click on save
Then
verify mandatory field validations for security schedule
Given
Security management user logged into the application
When
User navigates to security schedule page
Error: Unable to create order — all attempted dates already have an entry.
at SecuritySchedulePage.(anonymous) (C:\SOTA\src\pages\securitySchedule.page.ts:249:36)
at step (C:\SOTA\src\pages\securitySchedule.page.ts:33:23)
at Object.next (C:\SOTA\src\pages\securitySchedule.page.ts:14:53)
at fulfilled (C:\SOTA\src\pages\securitySchedule.page.ts:5:58)
And
Select staffing from Staffing for Operations list and fill the steady name, radio and vehicle
And
Enter notes, sergeant name and click on save
Then
User should see success message for security schedule
Then
Delete one row from the security schedule and click on save